package com.example.springboot.utils.springutils;

import org.springframework.util.ClassUtils;

import java.util.Arrays;

/**
 * @author chenzhangkun
 * @ClassName ClassUtilDemo
 * @description: TODO
 * @date 2024年02月02日
 */
public class ClassUtilDemo {

    public static void main(String[] args) {

        Class<?>[] allInterfaces = ClassUtils.getAllInterfaces(Dog.class);
        Arrays.stream(allInterfaces).forEach(allInterface->{
            System.out.println(allInterface);
        });

        System.out.println(ClassUtils.isInnerClass(Dog.class));

    }
    private interface Dog{
        void eat();
        void drink();
    }
}
